﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BaffoHat.Core.Test
{
    [TestClass]
    public class GlassesTest
    {
        [TestMethod]
        public void Glasses_costructor()
        {
            Glasses glasses = new Glasses();

            Assert.AreEqual(glasses.One.DiceAssociation, DiceFace.One);
            Assert.AreEqual(glasses.Two.DiceAssociation, DiceFace.Two);
            Assert.AreEqual(glasses.Three.DiceAssociation, DiceFace.Three);
            Assert.AreEqual(glasses.Four.DiceAssociation, DiceFace.Four);
            Assert.AreEqual(glasses.Five.DiceAssociation, DiceFace.Five);
            Assert.AreEqual(glasses.Six.DiceAssociation, DiceFace.Six);

            Assert.AreEqual(glasses.One.IsEmpty, true);
            Assert.AreEqual(glasses.Two.IsEmpty, true);
            Assert.AreEqual(glasses.Three.IsEmpty, true);
            Assert.AreEqual(glasses.Four.IsEmpty, true);
            Assert.AreEqual(glasses.Five.IsEmpty, true);
            Assert.AreEqual(glasses.Six.IsEmpty, true);
        }

        [TestMethod]
        public void Glasses_indexer()
        {
            Glasses glasses = new Glasses();

            Glass glass = glasses[DiceFace.One];

            Assert.AreEqual(glass.DiceAssociation, DiceFace.One);
        }

    }
}
